package com.wyl.niupi.yxc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wyl
 * @since 2020-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "YxcGoods对象", description = "这是一个bean")
public class YxcGoods implements Serializable {

    @TableId(value = "lid", type = IdType.AUTO)
    private Integer lid;
    private String name;
    private Integer typeLid;
    private String barcode;
    private BigDecimal sellPrice;
    private String brand;
    private String supplier;
    private String standard;
    private Integer isDelete;

    public static final String LID = "lid";
    public static final String NAME = "name";
    public static final String TYPE_LID = "typeLid";
    public static final String BARCODE = "barcode";
    public static final String SELL_PRICE = "sellPrice";
    public static final String BRAND = "brand";
    public static final String SUPPLIER = "supplier";
    public static final String STANDARD = "standard";
    public static final String IS_DELETE = "isDelete";

    @Schema(description = "主键", example = "1", required = true)
    public Integer getLid() {
        return lid;
    }
    @Schema(description = "商品名", example = "可乐", required = true)
    public String getName() {
        return name;
    }
    @Schema(description = "商品类别主键", example = "2", required = true)
    public Integer getTypeLid() {
        return typeLid;
    }
    @Schema(description = "条形码", example = "690000321313", required = true)
    public String getBarcode() {
        return barcode;
    }
    @Schema(description = "售价", example = "2.33", required = true)
    public BigDecimal getSellPrice() {
        return sellPrice;
    }
    @Schema(description = "品牌", example = "可口可乐", required = false)
    public String getBrand() {
        return brand;
    }
    @Schema(description = "供应商", example = "xxx", required = false)
    public String getSupplier() {
        return supplier;
    }
    @Schema(description = "标准", example = "xxx", required = false)
    public String getStandard() {
        return standard;
    }
    @Schema(description = "是否删除", example = "0否1是", required = true)
    public Integer getIsDelete() {
        return isDelete;
    }
}
